package com.itzdm.client.client;

import com.itzdm.client.config.DefaultFeignConfig;
import com.itzdm.client.fallback.FileFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.itzdm.client.domain.po.File;

import java.util.List;

/**
 * @作者：张德明
 * @时间：2025/4/19 17:14
 */
@FeignClient(value = "file-service", fallback = FileFallback.class, configuration = DefaultFeignConfig.class)
public interface FileClient {
    @GetMapping("/file/getFileByIds")
    List<File> getFileByIds(@RequestParam("fileIds") List<Long> fileIds);
}
